from django.urls import path
from visitor.auth import VisitorTokenView
from visitor import views

app_name = "visitor"

urlpatterns = [
    path("login", VisitorTokenView.as_view()),
    path("reg", views.RegApi.as_view()),
    path("index/data", views.IndexDataApi.as_view()),
    path("teacher/list", views.TeacherListApi.as_view()),
    path("teacher/search", views.TeacherSearchApi.as_view()),
    path("person/list", views.PersonListApi.as_view()),
    path("person/search", views.PersonSearchApi.as_view()),
    path("person/add", views.PersonAddApi.as_view()),
    path("person/bind", views.PersonBindApi.as_view()),
    path("car/list", views.CarListApi.as_view()),
    path("car/search", views.CarSearchApi.as_view()),
    path("car/add", views.CarAddApi.as_view()),
    path("car/bind", views.CarBindApi.as_view()),
    path("apply/add", views.ApplyAddApi.as_view()),
    path("apply/del", views.ApplyDelApi.as_view()),
    path("apply/det", views.ApplyDetApi.as_view()),
    path("apply/lst", views.ApplyLstApi.as_view()),
    path("info/index", views.InfoIndexApi.as_view()),
]